package top.huntwolf.admin.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import top.huntwolf.admin.common.enums.BookConditionEnum;
import top.huntwolf.admin.pojo.book.BuyBook;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CartItem {

    private int itemId;
    private int num;
    private String isbn;
    private String cartId;
    private String bookCondition;

    @JSONField(serialize = false)
    @JsonIgnore
    private BookConditionEnum conditionEnum;

    private BuyBook book;
}
